package com.tiger.project.domain;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tiger.common.annotation.Excel;
import com.tiger.common.core.domain.BaseEntity;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;


/**
 * 【决策依据】对象 common_decision
 *
 * @author standard
 * @date 2022-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "common_decision对象", description = "【决策依据】内容")
public class CommonDecision extends BaseEntity {
private static final long serialVersionUID = 1L;

        /** ID */
        private Long id;

        /** 编号 */
        @Excel(name = "编号")
        @ApiModelProperty(value = "编号")
        private String code;

        /** 标题 */
        @Excel(name = "标题")
        @ApiModelProperty(value = "标题")
        private String title;

        /** 上传人id */
        @Excel(name = "上传人id")
        @ApiModelProperty(value = "上传人id")
        private Long uploadId;

        /** 上传人姓名 */
        @Excel(name = "上传人姓名")
        @ApiModelProperty(value = "上传人姓名")
        private String uploadName;

        /** 时间 */
        @JsonFormat(pattern = "yyyy-MM-dd")
        @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
        @ApiModelProperty(value = "时间")
        private Date decisionTime;

        /** 详细信息 */
        @Excel(name = "详细信息")
        @ApiModelProperty(value = "详细信息")
        private String detailedInfo;

        /** 创建时间 */
        @JsonFormat(pattern = "yyyy-MM-dd")
        @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
        @ApiModelProperty(value = "创建时间")
        private Date createdAt;

        /** 更新时间 */
        @JsonFormat(pattern = "yyyy-MM-dd")
        @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
        @ApiModelProperty(value = "更新时间")
        private Date updateAt;

        /** 创建人 */
        @Excel(name = "创建人")
        @ApiModelProperty(value = "创建人")
        private Long createById;

        /** 创建人名称 */
        @Excel(name = "创建人名称")
        @ApiModelProperty(value = "创建人名称")
        private String createByName;

        /** 更新人 */
        @Excel(name = "更新人")
        @ApiModelProperty(value = "更新人")
        private Long updateById;

        /** 更新人名称 */
        @Excel(name = "更新人名称")
        @ApiModelProperty(value = "更新人名称")
        private String updateByName;

        /** 租户id(0--平台用户 非0--正常租户) */
        @Excel(name = "租户id(0--平台用户 非0--正常租户)")
        @ApiModelProperty(value = "租户id(0--平台用户 非0--正常租户)")
        private Long tenantId;

        /** 1-是，0-否 */
        @Excel(name = "1-是，0-否")
        @ApiModelProperty(value = "1-是，0-否")
        private Integer isDeleted;

        @ApiModelProperty(value = "公司id")
        private Long companyId;

        @ApiModelProperty(value = "决策管理附件集合")
        private List<CommonDecisionEnclosure> decisionEnclosureList = new ArrayList<>();

        @ApiModelProperty(value = "1-升序 2-降序")
        private Long rank;


}
